On Callback Listener
A listener interface for receiving generic callback events, often originating from web-based content (such as RevelDigital Gadgets) or other extensible components within the player environment.
This listener provides a flexible mechanism for custom communication from a sandboxed environment (like a WebView running a Gadget) to the native Android player code. For example, a Gadget might trigger a callback to request native device functionality or to report a specific user interaction.
Implementations of this interface are registered with the component that is expected to dispatch these callback events (e.g., using an addOnCallbackListener
method on a gadget bridge or web view manager). When a registered callback event occurs, the onCallback method of the listener object is invoked with the arguments provided by the event source.
See also
A common source or target for such callbacks.